package org.springframework.learn.beans.note.bd;

import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.learn.beans.data.Car;
import org.springframework.learn.beans.data.User;

import java.math.BigDecimal;

/**
 * Description
 * Copyright © 启明星辰 版权所有
 *
 * @author chenjiquan
 * @date 2024-07-01
 */
public class BdNote {
	public static void main(String[] args) {
		AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition().getBeanDefinition();
		beanDefinition.setBeanClass(Car.class);
		beanDefinition.setInstanceSupplier(() -> new User());
	}
}
